<?php 
    require('../autoload.php');
    $user_model = new UserTableModel();
    $task = $_REQUEST['task'];
    switch($task){
        case "loadUserByID":
            if(isset($_POST['user_id'])){
                $user_id = $_POST['user_id'];
                $where['user_id'] .= $user_id;
                $data = $user_model->selectUser("*","",$where);
                echo json_encode($data);
            }
        break;
    }
    
?>